<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" >
<head>
<meta charset="utf-8">
<title>首页</title>
<link href="c/base.css" rel="stylesheet" type="text/css">
<link href="c/toefl.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="c/bootstrap.min.css">
<script type="text/javascript" src="j/jquery-2.1.0.js"></script>
<script src="j/bootstrap.min.js"></script>
</head>

<body style="overflow-x: hidden">
<div class="doc1180">
	<div class="header">
    	<div class="logo"><a href="####"><img src="i/logo.png"></a></div>

        <div class="headerUser" th:if="${session.sess_user}">
        	<ul>
            	<li class="headerUserPic"><a href="###"><img src="i/30x30.png"></a></li>
                <li class="headerUserName"><a href="/toUserIndex" target="ifr" th:text="${session.sess_user.login_name}"></a></li>
                <li class="headerUserNotice">通知<a href="###">14</a></li>
            </ul>
        </div>
        <div class="headerLink"  th:unless="${session.sess_user}">
        	<a class="###" href="/toTeacherLogin">教师登录</a>
            <a class="###" href="/toLogin">用户登录</a>
            <a class="###" href="/toRegister">用户注册</a>
        </div>
    </div>
</div>



<div class="menu">
	<div class="doc1180">
   	  <div class="menuLink">
        	<ul class="fn-clear">
            	<li class="active"><a href="/" target="ifr">首页</a></li>
                <li><a href="托福人/托福人.html" target="ifr">托福人</a></li>
                <li><a href="/toClassMain" target="ifr">公开课</a></li>
                <li><a href="群组聊/组群聊-组群聊.html" target="ifr">群组聊</a></li>
                <li><a href="福利城堡/福利城堡-福利城堡.html" target="ifr">福利城堡</a></li>
            </ul>
        </div>
        <div class="fenxiang">
        	<a href="#" class="weibo"><img src="i/weibo.png" ></a>
            <a href="#" class="weixin"><img src="i/weixin.png" ></a>
        </div>
    </div>
</div>






<iframe id = "ifr" name='ifr'  src="toMain" style="width: 99vw;height: 84vh;" scrolling="no" frameborder="no"></iframe>
<iframe src="toFooter" style="width: 99vw;height: 32vh;" frameborder="no" scrolling="no"></iframe>


<script type="text/javascript">





  // 计算页面的实际高度，iframe自适应会用到
  function calcPageHeight(doc) {
      var cHeight = Math.max(doc.body.clientHeight, doc.documentElement.clientHeight);
      var sHeight = Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight);
      var height  = Math.max(doc.body.clientHeight, doc.body.scrollHeight);
      return height
  }
  var ifr = document.getElementById('ifr')
  ifr.onload = function() {
  	  var inter = window.setInterval(function() {
  	  	  var iDoc = ifr.contentDocument || ifr.document
	      var height = calcPageHeight(iDoc)
	      ifr.style.height = height + 'px'
  	  	
  	  },100);
  	  window.setTimeout(function() {
  	  	window.clearInterval(inter);
  	  },10000);
      
  }
</script>
<!-- 代码结束 -->
</body>
</html>
